package com.zack.designPattern.factory.abstractFactory;

public class Demo {

	public static void main(String[] args) {
		IFactory nokiaFactory = new NokiaFactory();
		IFactory motoFactory = new MotoFactory();
		
		IPhone nokiaPhone = nokiaFactory.createPhone();
		IPad nokiaPad = nokiaFactory.createPad();
		IPhone motoPhone = motoFactory.createPhone();
		IPad motoPad = motoFactory.createPad();
		
		nokiaPhone.doPhoneThing();
		nokiaPad.doPadThing();
		motoPhone.doPhoneThing();
		motoPad.doPadThing();
	}
}
